package vip.xiaonuo.app.modular.vip.controller.front;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import vip.xiaonuo.app.modular.vip.service.AppVipPackageService;
import vip.xiaonuo.core.pojo.response.ResponseData;

import javax.annotation.Resource;

/**
 * <p>Title : vip套餐前端控制器</p>
 * <p>Description : </p>
 * <p>DevelopTools : IDEA</p>
 * <p>DevelopSystem : Windows11</p>
 *
 * @Author : zxw
 * @Date 2023/10/7 14:20
 */
@RestController
@RequestMapping("/api/vipPackage")
public class ApiAppVipPackageController {


    @Resource
    private AppVipPackageService appVipPackageService;

    /**
     * vip 套餐列表
     *
     * @return
     */
    @GetMapping("/list")
    public ResponseData list() {

        return ResponseData.success(appVipPackageService.getVipPackageList());
    }
}
